package com.canxi.earn.domain.bo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import com.canxi.common.core.domain.BaseEntity;
import com.canxi.common.core.validate.AddGroup;
import com.canxi.common.core.validate.EditGroup;

import java.math.BigDecimal;

/**
 * 功能列业务对象 cx_funs
 *
 * @author ruoyi
 * @date 2024-09-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CxFunsBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 图标Id
     */
    @NotBlank(message = "图标Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String iconOssId;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 0=资讯赚，1=笑话赚，2=走路赚，3=幸运抽奖，4=吃饭赚，5=睡觉赚，6=拼图赚，7=语音赚，8=视频赚，9=每日必赚
     */
    @NotBlank(message = "0=资讯赚，1=笑话赚，2=走路赚，3=幸运抽奖，4=吃饭赚，5=睡觉赚，6=拼图赚，7=语音赚，8=视频赚，9=每日必赚不能为空", groups = { AddGroup.class, EditGroup.class })
    private String toType;

    /**
     * 跳转路径，可与toType配合使用
     */
    private String toPath;

    /**
     * 可获取的金额
     */
    @NotNull(message = "可获取的金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 0,高额，1，休闲，2，娱乐
     */
    @NotBlank(message = "0,高额，1，休闲，2，娱乐不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 0=不显示，1=显示
     */
    @NotBlank(message = "0=不显示，1=显示不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;
    @NotNull(message = "排序", groups = { AddGroup.class, EditGroup.class })
    private long sort;

}
